<?php// step1: connect to databasemysql_connect("localhost","root","");mysql_select_db("test_zf2");// step2: get all record in table$rs = mysql_query("SELECT * FROM students");$data = array();while($row = mysql_fetch_array($rs)){    $data[] = $row;}// step3: return to android deviceecho json_encode($data);// setp4: close connection to databasemysql_close();